<template>
  <div class="shop-walletLog">
    <div class="title">{{$t('shopWallet.platfromBalance')}}</div>
    <div class="head">
      <div class="head-item">
        <div class="text">
          <span>{{$t("shopWallet.platfromIncomeBalance")}} </span>
        </div>
        <div class="balance">
          <span>{{settledAmount }}</span>
        </div>
      </div>
  </div>
  </div>
</template>

<script>

export default {
  name: 'finance-walletLog/index',
  data () {
    return {
      settledAmount: 0
    }
  },

  created () {

  },
  mounted () {
    this.getShopWallet()
  },

  methods: {
    // 获取店铺余额信息
    getShopWallet () {
      this.$http({
        url: this.$http.adornUrl('/platform/sandProfit/accountBalanceQuery'),
        method: 'get'
      }).then(({data}) => {
        this.settledAmount = data || 0
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.shop-walletLog {
  .title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  .head {
    background: #f7f8fa;
    height: 110px;
    padding: 20px;
    display: flex;
    // justify-content: space-around;
    margin-bottom: 20px;
    .head-item {
      height: 100%;
      width: 230px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      text-align: center;
      margin-right: 250px;
      .balance {
        font-size: 22px;
      }
    }
  }
}
</style>
